const path = require("path")
const filePath = "C://abc/cba/abc.txt"
// dirname 获取父文件夹名称
console.log(path.dirname(filePath));
// basename 获取文件名
console.log(path.basename(filePath));
// 获取文件扩展名
console.log(path.extname(filePath));

const filePathA = "/abc/cba"
const filePathB = "../why/kobe/james.txt"
console.log(path.join(filePathA,filePathB));

console.log(path.resolve("../abc")); //D:\MyStudy\前端笔记资料\03-前端工程化\front-end-engineering\04-邂逅webpack\abc






